package com.itheima.file;

import java.io.File;
import java.io.IOException;

public class Demo1File {
    public static void main(String[] args) throws IOException {
        String s = "E:\\itcast\\a.txt";
        File file = new File(s);
        file.createNewFile();
        System.out.println(file);

        String s2 = "E:\\itcast";
        String s3 = "b.txt";
        File file2 = new File(s2,s3);
        file2.createNewFile();
        System.out.println(file2);

        File file3 = new File("E:\\itcast");
        String s4 = "c.txt";
        File file4 = new File(file3,s4);
        file4.createNewFile();
        System.out.println(file4);
    }
}
